home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1498 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news.iag.net!news
  2. From: jatmon@iag.net (John R Buchan)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: c help request
  5. Date: 14 Jan 1996 19:28:18 GMT
  6. Organization: Internet Access Group, Orlando, Florida
  7. Message-ID: <4dblgi$47c@news.iag.net>
  8. References: <4d775l$h93@ccshst05.cs.uoguelph.ca>
  9. NNTP-Posting-Host: pm3-orl13.iag.net
  10. X-Newsreader: WinVN 0.99.7
  11.  
  12. In article <4d775l$h93@ccshst05.cs.uoguelph.ca>, ttsuchid@uoguelph.ca says...
  13.  
  14. <snip  ##*%$# news server policy!!>
  15. >I'm using the c compiler that comes with HP-UX 9.x (9.1 I think)
  16. >(in chkmail.c, mm_list and mm_lsub are dummy prototype declarations.)
  17. >I get the below errors when I compile.
  18. >-------------------------------
  19. >~/CCS/toys/chkmail > make
  20. >cc -Aa -I../imap-4/c-client `cat ../imap-4/c-client/CFLAGS` -c chkmail.c
  21. >cc: "chkmail.c", line 132: error 1711: Inconsistent parameter list 
  22. >declaration for "mm_list".
  23.  
  24. <snip  ##*%$# news server policy!!>
  25. >Here all the mm_list references to see if you can detect a pattern:
  26. >--------------------------------
  27. >~/CCS/toys/imap-4/c-client > grep -n mm_list *.h
  28. >mail.h:81:/* Bits for mm_list() and mm_lsub() */
  29. >mail.h:791:void mm_list ();        <-------------- this looks suspect but
  30. >                                              I haven't take a close look 
  31. >yet.
  32.  
  33. <Note: I am assuming that the HP-UX 9.x compiler is ansi compliant.>
  34.  
  35. Yes, this should be the source of your problems.  Since you are not 
  36. specifying parameters, the number and types of parameters passed in the first
  37. call will be assumed correct.  If the first call is:
  38.  
  39.   mm_list (stream,'.',name,LATT_NOSELECT);
  40.  
  41. <I'll assume stream was defined as a MAILSTREAM pointer, name as char pointer
  42. and LATT_NOSELECT as 0>
  43. The parameters might look like:
  44.  
  45.   mm_list (MAILSTREAM *, int, char *, int);
  46.  
  47. Anyway, just change the prototype in your header to match the function 
  48. definition and be sure to include the header in any file that calls mm_list:
  49.  
  50.   void mm_list (MAILSTREAM *stream,char delimiter,char *name,long attributes);
  51.  
  52.  
  53. -- 
  54. John R Buchan           -:|:-     Looking for that elusive FAQ?  ftp to:
  55. jatmon@mail.iag.net     -:|:-     rtfm.mit.edu /pub/usenet-by-group/....
  56.  
  57.